declare function print(a:any,b?:any):string

print("begin")
var start = Date.now()
function foo() {
var x:number = 0;
for (var i:number = 0 ; i < 3000000; i++) {
    x = (i + 0.5) * (i + 0.5);
}
return x
}

var result = foo()
var end = Date.now()
//print("time:" + (end - start) + " result: " + result)
print("forlooper_total :", end - start);


